package ThreadCreat;

public class ThreadExtendsThread extends Thread{
    String str;
//    法一：继承Thread类，复写run()
    public void run(){
        System.out.println(Thread.currentThread().getName()+"ThreadCreat.ThreadExtendsThread run............");
        System.out.println(Thread.currentThread().getPriority());
//        for (int i=0;i<10;i++){
//            System.out.println(i+"->"+str);
//        }
//        ThreadCreat.Thread03 thread03=new ThreadCreat.Thread03();
//        thread03.test();
    }

    public static void main(String[] args) {
        ThreadExtendsThread thread01=new ThreadExtendsThread();
        thread01.start();
    }
}
